package com.xiti.student.base.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 区县
 * </p>
 *
 * @author tangz
 * @since 2018-06-14
 */
@ApiModel(value = "District", description = "区县")
@TableName("tb_base_district")
public class District implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "id", value = "区县id", dataType = "Long", notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(name = "cityAdcode", value = "市adcode", dataType = "String", notes = "")
    private String cityAdcode;

    @ApiModelProperty(name = "provinceAdcode", value = "省adcode", dataType = "String", notes = "")
    private String provinceAdcode;

    @ApiModelProperty(name = "citycode", value = "城市编码", dataType = "String", notes = "")
    private String citycode;

    @ApiModelProperty(name = "adcode", value = "区域编码 街道没有独有的adcode，均继承父类（区县）的adcode", dataType = "String", notes = "")
    private String adcode;

    @ApiModelProperty(name = "name", value = "行政区名称", dataType = "String", notes = "")
    private String name;

    @ApiModelProperty(name = "level", value = "行政区划级别 0country:国家 10province:省份（直辖市会在province和city显示）20city:市（直辖市会在province和city显示）30district:区县street:街道", dataType = "Integer", notes = "")
    private Integer level;

    @ApiModelProperty(name = "parentAdcode", value = "父级adcode", dataType = "String", notes = "")
    private String parentAdcode;

    @ApiModelProperty(name = "adcodePath", value = "adcode全路径", dataType = "String", notes = "")
    private String adcodePath;

    @ApiModelProperty(name = "longitude", value = "经度", dataType = "String", notes = "")
    private String longitude;

    //@JSONField(serialize=false)
    @ApiModelProperty(name = "latitude", value = "纬度", dataType = "String", notes = "")
    private String latitude;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCityAdcode() {
        return cityAdcode;
    }

    public void setCityAdcode(String cityAdcode) {
        this.cityAdcode = cityAdcode;
    }

    public String getProvinceAdcode() {
        return provinceAdcode;
    }

    public void setProvinceAdcode(String provinceAdcode) {
        this.provinceAdcode = provinceAdcode;
    }

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getAdcode() {
        return adcode;
    }

    public void setAdcode(String adcode) {
        this.adcode = adcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getParentAdcode() {
        return parentAdcode;
    }

    public void setParentAdcode(String parentAdcode) {
        this.parentAdcode = parentAdcode;
    }

    public String getAdcodePath() {
        return adcodePath;
    }

    public void setAdcodePath(String adcodePath) {
        this.adcodePath = adcodePath;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Override
    public String toString() {
        return "District{" +
        ", id=" + id +
        ", cityAdcode=" + cityAdcode +
        ", provinceAdcode=" + provinceAdcode +
        ", citycode=" + citycode +
        ", adcode=" + adcode +
        ", name=" + name +
        ", level=" + level +
        ", parentAdcode=" + parentAdcode +
        ", adcodePath=" + adcodePath +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        "}";
    }
}
